namespace TripleA.Core.Database.SqlServerCe
{
    using System.Data;
    using TripleA.Core.Database;

    /// <summary>
    /// Provides a SqlServer specific sql statement builder
    /// </summary>
    public class SqlServerCeStatement : SqlStatementBase<SqlServerCeStatement>
    {
        public static SqlServerCeStatement Create(string statement, params object[] args)
        {
            var sql = new SqlServerCeStatement();
            sql.myCmdBuilder.AppendFormat(statement, args);
            return sql;
        }

        public SqlServerCeStatement Done()
        {
            return this;
        }

        public override IDataParameter NewParameter(string name, object value)
        {
            return new SqlCeParameter(name, value);
        }
    }
}